package com.wenmingliang.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.wenmingliang.common.utils.PageUtils;
import com.wenmingliang.common.vo.product.AttrGroupRelationVO;
import com.wenmingliang.common.vo.product.AttrRespVO;
import com.wenmingliang.gulimall.product.entity.AttrEntity;
import com.wenmingliang.gulimall.vo.AttrVo;

import java.util.List;
import java.util.Map;

/**
 * 商品属性
 *
 * @author wenmingliang
 * @email 2848763719@qq.com
 * @date 2022-02-08 17:47:05
 */
public interface AttrService extends IService<AttrEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void saveAttr(AttrVo attr);

    PageUtils queryBaseAttrPage(Map<String, Object> params, Long catelogId, String type);

    AttrRespVO getAttrInfo(Long attrId);

    List<AttrEntity> getRelationAttr(Long attrgroupId);

    void deleteRelation(AttrGroupRelationVO[] vos);

    PageUtils getNoRelationAttr(Map<String, Object> params, Long attrgroupId);
}

